<?php
$page = $_GET['page'];

if($page=='library')
{
    $userType = $_COOKIE['userType'];

    if($userType == superadministrator)
    {
            //echo"'<script>document.location.href='deletelibrarylist.php'</script>'";
    echo"'<script>document.location.href='deletelibrarylist.php'</script>'";
  }
  else
  {
    echo"<script> alert('Sorry you have no priviledge to delete!');</script>";
    echo"'<script>document.location.href='libprofileview.php'</script>'";
  }


}
if($page=='catalog')
{
    $host  = $_SERVER['HTTP_HOST'];
    $uri  = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
    $extra = 'deletecataloglist.php';
    header("Location: http://$host$uri/$extra");

}
if($page=='client')
{
    $host  = $_SERVER['HTTP_HOST'];
    $uri  = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
    $extra = 'clientdelsearch.php';
    header("Location: http://$host$uri/$extra");
}
if($page=='admin')
{
    $host  = $_SERVER['HTTP_HOST'];
    $uri  = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
    $extra = 'adminresult.php';
    header("Location: http://$host$uri/$extra");
}
if($page=='news')
{
    $host  = $_SERVER['HTTP_HOST'];
    $uri  = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
    $extra = 'newsresult.php';
    header("Location: http://$host$uri/$extra");
}

?>
